<template>
  <div class="app">
    <p>{{ num }}</p>
    <button @click="addNumAction">+ADD</button>
  </div>
</template>

<script>
import { mapActions, mapState, mapGetters } from 'vuex'
export default {
  data () {
    return {
    }
  },
  computed: {
    ...mapState([
      'num'
    ])
  },
  methods: {
    ...mapActions([
      'addNumAction'
    ]),
    ...mapGetters([
      'getNum'
    ])
  }
}
</script>
